package com.qire.manhua.dialog;

import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;

import com.qire.antsrouter.lifecycleHandler.ActivityManageHandler;
import com.qire.common.support.base.BaseDialog;
import com.qire.manhua.R;
import com.qire.manhua.databinding.DialogAutoPayTipsBinding;

import androidx.annotation.NonNull;

/**
 * 开启自动解锁功能提示框：在解锁面板勾选自动解锁时弹出
 */
public class AutoPayTipsDialog extends BaseDialog {

    public static AutoPayTipsDialog build() {
        return new AutoPayTipsDialog(ActivityManageHandler.HANDLER.currentActivity());
    }

    private final DialogAutoPayTipsBinding binding;

    public AutoPayTipsDialog(@NonNull Context context){
        super(context, R.style.CustomDialog_Translucent);
        binding = DialogAutoPayTipsBinding.inflate(LayoutInflater.from(context), null,false);
        binding.setAutoPayTipsDialog(this);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(binding.getRoot());
        setCancelable(false);
    }

    public void okBtnOnClick(View view){
        dismiss();
    }

}
